export default {
  title : {
    text: '疫情追踪',
    // subtext: '湖北疫情地图',
    x:'left'
},
  color: ['#cca272', '#74608f', '#d7a02b'],
  tooltip: {
      trigger: 'axis',
      axisPointer: {            // 坐标轴指示器，坐标轴触发有效
          type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
      }
  },
  grid: {
      left: '3%',
      right: '4%',
      bottom: '3%',
      containLabel: true
  },
  xAxis: [
      {
          type: 'category',
          data: ['在院治疗', '密切接触者', '医学观察'],
          axisTick: {
              alignWithLabel: true
          }
      }
  ],
  yAxis: [
      {
        max:80000,
        // min:0,
        type: 'value',
        minInterval: 20000,
      }
  ],
  series: [
    {
      name: '数量',
      type: 'bar',
      itemStyle: {
        normal: {
          color: function (params) { // 给出颜色组 
            var colorList = ['#cca272', '#74608f', '#d7a02b', '#c8ba23'];
            return colorList[params.dataIndex]
          },
        }
      },
      //柱状图宽度
      barWidth: '30%',
      //柱状图数值
      data: [
        {value: 5000, name: 'www'},
        {value: 6000, name: 'www1'},
        {value: 7000, name: 'www2'}
      ]
    }
  ],
legend: {
  orient: 'vertical',
  x: 'right',
  data: ['www', 'www1', 'www2']
  }
};
